﻿namespace DomainExample.DomainModel.PersonModel
{
    public sealed class PersonSearch : IEntity
    {
        private PersonSearch()
        {

        }

        public static PersonSearch NewPersonSearch()
        {
            return new PersonSearch();
        }

        public string FirstName { get; set; }
        public string LastName { get; set; }

        public bool IsValidForPersistence()
        {
            return false;
        }

        public override string ToString()
        {
            return string.Format(
                "{0}: FirstName={1}, LastName={2}",
                base.ToString(),
                FirstName,
                LastName
                );
        }
    }
}
